/*
   Copyright 2009 Abdulla Abdurakhmanov (abdulla@latestbit.com)
   Original sources are available at www.latestbit.com

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

#ifndef CPPUTILS_VERSION_HPP
#define CPPUTILS_VERSION_HPP

#include <string>
#include "cpputils/CppUtilsDefinitions.hpp"

namespace cpputils {
	/**
	 * The utils namespace provide an auxiliary classes/methods needed for all other modules
	 */
	namespace utils {

		/**
		 * The version representation as class
		 */
		class CPPU_DLLPRFX Version {
			unsigned int m_nMajor;
			unsigned int m_nMinor;
			unsigned int m_nBuild;
		public:
			Version(const std::string& sVersionStr);
			Version(unsigned int nMajor, unsigned int nMinor, unsigned int nBuild);
			std::string getVersionAsStr() const;
			unsigned int getMajorVer() const;
			unsigned int getMinorVer() const;
			unsigned int getBuildVer() const;
		};
	}
}

#endif // CPPUTILS_VERSION_HPP
